package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * 用户实体类
 */

@Setter
@Getter
public class User extends BaseDomain{

    //性别常量
    public static final int MAN=1;
    public static final int WOMAN=0;
    public static final int SECRET=-1;


    //邮箱
    private String email;
    //昵称
    private String nickName;
    //密码
    private String password;
    //地区
    private String place;
    //头像地址
    private String headImgUrl;
    //性别
    private Integer gender=SECRET;
    //背景图片地址
    private String coverImgUrl;
    //个性签名
    private String sign;

    //性别的形容
    public String getGenderName(){
        if(gender == MAN){
            return "男";
        }else if(gender == WOMAN){
            return "女";
        }else {
            return "保密";
        }

    }


}